<?php
/**
 * @author Arif Setiyanto
 * @copyright 2012
 */

class Koneksi extends PDO {
var $db_host='localhost';
var $db_name='appcuti';
var $db_username='root';
var $db_pass='';
private $_db=null;

    public function __construct() {

        }

    public function connect() {
        try {
            parent::__construct("mysql:host={$this->db_host};dbname={$this->db_name}", $this->db_username, $this->db_pass);
        } catch (PDOException $e) {
            echo $e->getMessage();
        }
    }
    
    public function connectBck(){
        $koneksi = mysql_connect($this->db_host,$this->db_username, $this->db_pass);
        mysql_select_db($this->db_name, $koneksi) or die( "MySQL Gagal Koneksi" );

    }
}